<?php
/**
 * Created by PhpStorm.
 * User: 10749
 * Date: 2017/6/5
 * Time: 19:08
 */
class  Domain_User{


    public function userReg($data){
        $modeluser = new Model_User();
        $userid = $modeluser->userReg($data);
        if (!$userid){
            throw new PhalApi_Exception_BadRequest(T("Error UserReg"),-1);
        }
        return $userid;
    }

    public function getUserById($userid){
        $modeluser = new Model_User();
        $users = $modeluser->get($userid);
        return $users;
    }
}